home *** CD-ROM | disk | FTP | other *** search
/ Cream of the Crop 1 / Cream of the Crop 1.iso / PROGRAM / CBASE102.ARJ / BEXIT.C < prev    next >
Text File  |  1991-09-23  |  865b  |  46 lines

  1. /*    Copyright (c) 1989 Citadel    */
  2. /*       All Rights Reserved        */
  3.  
  4. /* #ident    "@(#)bexit.c    1.5 - 91/09/23" */
  5.  
  6. #include <ansi.h>
  7.  
  8. /* ansi headers */
  9. #ifdef AC_STDLIB
  10. #include <stdlib.h>
  11. #endif
  12.  
  13. /* local headers */
  14. #include "blkio_.h"
  15.  
  16. /*man---------------------------------------------------------------------------
  17. NAME
  18.      bexit - block file exit
  19.  
  20. SYNOPSIS
  21.      #include <blkio.h>
  22.  
  23.      void bexit(status)
  24.      int status;
  25.  
  26. DESCRIPTION
  27.      The bexit function is for use with the blkio library in place of
  28.      exit.  It closes all open block files,  flushing the buffers,
  29.      then calls exit.
  30.  
  31. SEE ALSO
  32.      bclose.
  33.  
  34. ------------------------------------------------------------------------------*/
  35. #ifdef AC_PROTO
  36. void bexit(int status)
  37. #else
  38. void bexit(status)
  39. int status;
  40. #endif
  41. {
  42.     bcloseall();
  43.  
  44.     exit(status);
  45. }
  46.